package cn.fayang.basic.query;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 公共高级查询分页查询
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class BaseQuery {
    //页面条数
    private Integer pageSize = 10;
    //页数
    private  Integer currentPage = 1;
    private String keyword;//关键字查询
    //设置当前页
    public Integer getStart(){
        return (this.currentPage - 1) * this.pageSize;
    }
}
